<?php
/**
 * 后台用户验类
 * @author yupoxiong<i@yufuping.com>
 */

namespace app\admin\validate;

class OtaValidate extends Validate
{
    protected $rule = [
        'ota_name|设备名称'           => 'require|unique:ota',
        'ota_group|分组'          => 'require',
        'ota_account|账号'          => 'require',
    ];

    protected $scene = [
        'add'    => ['ota_name', 'ota_group','ota_account'],
        'edit'   => ['ota_name', 'ota_group','ota_account'],
    ];
}
